package com.bianguo.android.apushdemo.entity;

import com.bumptech.glide.load.model.ByteArrayLoader;
import com.google.gson.annotations.SerializedName;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.converter.PropertyConverter;

import java.util.ArrayList;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/4/21.
 */
@Entity
public class MovieEntity {

    /**
     * count : 20
     * start : 0
     * total : 250
     * subjects : []
     * title : 豆瓣电影Top250
     */

    @SerializedName("count")
    private int count;
    @SerializedName("start")
    private int start;
    @SerializedName("total")
    private int total;
    @SerializedName("title")
    private String title;
    @Transient
    @SerializedName("subjects")
    private ArrayList<Subject> subjects;

    @Generated(hash = 1447240350)
    public MovieEntity(int count, int start, int total, String title) {
        this.count = count;
        this.start = start;
        this.total = total;
        this.title = title;
    }

    @Generated(hash = 1226161063)
    public MovieEntity() {
    }

    public ArrayList<Subject> getSubjects() {
        return subjects;
    }

    public void setSubjects(ArrayList<Subject> subjects) {
        this.subjects = subjects;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
